<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>修改密码</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <style>
        *{
            box-sizing: initial;
            font-size: 14px;
            margin: 0px;
        }
        html{
            height: 100%;
        }
        ul,li{
            margin: 0;
            padding: 0;
            list-style: none;
        }
        input:focus {
            outline: 0;
        }
        .text-left{
            text-align: left;
            padding-left: 25px;
        }
        .text-center{
            text-align: center;
        }
        .btn_box{
            margin: 20px auto 0;
        }
        .btn_box>input{
            padding: 0px;
        }
        #codeImg{
            vertical-align: middle;
        }
        .t_list_caption{
            line-height: 24px;
            text-align: center;
            color: #000000;
            font-weight: bold;
        }
        .t_td_text{
            height: 38px;
            line-height: 17px;
            text-align: center;
        }
        .flexbox{
            display: -webkit-flex; /* Safari */
            display: flex;
        }
        .spacebetween{
            justify-content: space-between;
            align-items:center;
        }
        header{
            background: url(/static/images/topBg.gif) repeat-x;
            z-index: 1;
            line-height: 43px;
            text-align: center;
            color: #fff;
            font-size: 16px;
        }
        .wq{
            width: 100%;
            background: #f4e3db;
            margin-top: 35px;
            border: 1px solid #c3b1a4;
            border-width: 1px 0px;
        }
        .wq tr{
            width: 94%;
            border-radius: 5px;
            border: 1px solid #d3d3d3;
        }
        .wq tr td{
            padding: 5px 5px;
            border-bottom: 1px solid #d3d3d3;
        }
        .wq tr td input{
            padding: 5px 5px;
            border-radius: 5px;
            border: 1px solid #d3d3d3;
        }
        .submit{
            background: #6b250b;
            border: 1px solid #6b250b;
            color: #fff;
            width: 90%;
            margin: 0px auto;
            line-height: 38px;
            border-radius: 5px;
        }
    </style>
</head>
<body>
    <div>
        <header>首次修改密码</header>
    <form method="post" enctype="application/x-www-form-urlencoded">
        <table class="wq text-center table" border="0" cellpadding="0" cellspacing="0">
            <tr class="t_td_text">
                <td>原始密码：</td>
                <td class="text-left"><input type="password" id="jiupass" name="oldPassword" /></td>
            </tr>
            <tr class="t_td_text">
                <td>新设密码：</td>
                <td class="text-left"><input type="password" id="xinpass" name="password" /></td>
            </tr>
            <tr class="t_td_text">
                <td>确认密码：</td>
                <td class="text-left"><input type="password" id="qrpass" name="rePassword" /></td>
            </tr>
            <tr class="t_td_text">
                <td>验证码：</td>
                <td class="text-left"><input type="text" id="code" name="code" /><img class="code" alt="验证码" title="图片看不清？点击重新得到验证码" id="codeImg" onclick="this.src='/code?'+Math.random()" /></td>
            </tr>
        </table>
        <div class="btn_box flexbox spacebetween operationbtn">
            <input type="submit" value="确认修改" class="submit" />
        </div>
        </form>
    </div>

    <script>

        //动态验证码
        function code() {
            var codeImg = document.getElementById('codeImg'), m = Math.random();
            codeImg.src = '/code?' + m;
        }
        window.onload = function () {
            code()
        }

    </script>
</body>
</html>